﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace TestXNA3
{
    public static class Logger
    {
        private static StreamWriter _logWriter = null;
        public static void Print(string text)
        {
            if (_logWriter == null)
            {
                FileStream logFile = new FileStream("t3.log", FileMode.Create);
                _logWriter = new StreamWriter(logFile);
                _logWriter.WriteLine("Logging started");
            }
            _logWriter.WriteLine(text);
            _logWriter.Flush();
        }
    }
}
